package com.ybbase.framework.service.flow;

import com.ybbase.framework.model.po.flow.NodeRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 流程节点记录 服务类
 * </p>
 *
 * @author cg
 * @since 2019-12-04
 */
public interface NodeRecordService extends IService<NodeRecord> {
    /**
     * 根据业务id,流程code查找审批记录
     *
     * @param businessId 业务id
     * @param flowCode   流程code
     * @return List<ActivitiRecord> 审批记录
     * @throws Exception 查询异常
     * @author xuwenwu
     * @date 2019-11-11 16:37
     * @since 4.0
     */
    List<NodeRecord> selectNodeRecordByBusinessIdAndFlowCodeList(Long businessId, String flowCode);

    /**
     * 根据开户单id查询查询授权人和机构
     *
     * @param business_id
     * @return
     */
    public List<NodeRecord> getFlowData(Integer business_id);

    /**
     * 根据兑付单id查询查询授权人和机构
     *
     * @param business_id
     * @return
     */
    public List<NodeRecord> getFlowDataCash(Integer business_id);
}
